`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    19:49:38 06/21/2015 
// Design Name: 
// Module Name:    StoreControlUnit 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module StoreControlUnit(
	input [31:0] in,
	output reg [31:0] out,
	input [1:0] ctrl
    );

always @* begin
	if (ctrl == 0) out = in[7:0];
	else if (ctrl == 1) out = in[15:0];
	else out = in;
end

endmodule
